newb.c_lflag &= ~(ICANON | ECHO); /* set equivalent of
* CBREAK and * no
* ECHO */
newb.c_cc[VMIN] = 1; /* read() satified after 1 char */
newb.c_cc[VTIME] = 0; /* No timer */
#ifndef _POSIX_VDISABLE
# define _POSIX_VDISABLE 0
#endif
newb.c_cc[VQUIT] = _POSIX_VDISABLE;
# ifdef VDSUSP
newb.c_cc[VDSUSP] = _POSIX_VDISABLE;
# endif
# ifdef VSUSP
newb.c_cc[VSUSP] = _POSIX_VDISABLE;
# endif
# ifndef STTY_ONLY
if (!use_flow_control)
newb.c_iflag &= ~IXON; /* No XON/XOFF */
# endif /* STTY_ONLY */
# ifdef TCSETA
ioctl(tty_des, TCSETA, &newb);
# else
tcsetattr(tty_des, TCSADRAIN, &newb);
# endif
#endif /* USE_TERMIO */
#ifndef STTY_ONLY
#if defined(mips) && !defined(ultrix)
new_stty("raw -echo");
#endif /* mips */
#endif /* STTY_ONLY */
#ifndef STTY_ONLY
if ((co = tgetnum("co")) == -1)
co = 80;
if ((li = tgetnum("li")) == -1)
li = 24;
ptr = termcap;
/*
* Thanks to Max Bell (mbell@cie.uoregon.edu) for info about TVI
* terminals and the sg terminal capability
*/
SG = tgetnum("sg");
CM = tgetstr("cm", &ptr);
CL = tgetstr("cl", &ptr);
if ((CM == (char *) 0) ||
(CL == (char *) 0))
{
fprintf(stderr, "This terminal does not have the necessary capabilities to run IRCII\nin full screen mode. You may still run irc by using the -d switch\n");